import api from "../index";
import urls from "./urls";
const header = {
  "Content-Type": "application/json",
};
export default {
  // 登录/注册
  login(params) {
    return api.post(urls.login, params, header);
  },
  // 发送邮箱验证码
  code(params) {
    return api.get(urls.code, params);
  },
  // 获取用户信息
  info(params) {
    return api.get(urls.info, params);
  },
};
